<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no,minimal-ui">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <meta name="apple-mobile-web-app-title" content="阿福易购">
    <meta content="telephone=no" name="format-detection" />
    <meta content="email=no" name="format-detection" />
    <!-- uc、qq浏览器 -->
    <meta name="screen-orientation" content="portrait">
    <meta name="full-screen" content="yes">
    <meta name="browsermode" content="application">
    <meta name="x5-orientation" content="portrait">
    <meta name="x5-fullscreen" content="true">
    <meta name="x5-page-mode" content="app">
    <meta name="HandheldFriendly" content="true">
    <meta name="MobileOptimized" content="320">
    <meta name="csrf-token" content="{{ csrf_token() }}" />
    <meta name="keywords" content="{{$SEO['keywords']}}"/>
    <meta name="description" content="{{$SEO['description']}}"/>
    <title>商品评价_{{$SEO['title']}}</title>
    <link rel="stylesheet" href="{{ asset('/build/css/app.min.css') }}">
</head>
<body ontouchstart="">
<header class="ui-header ui-header-stable  af-header">
    <ul class="ui-row-flex">
        <li class="ui-col ui-flex ui-flex-pack-start">
            <i ontouchstart="window.history.back();" class="ui-icon-return"></i>
        </li>
        <li class="ui-col ui-flex ui-flex-pack-center">
            <h1>商品评价</h1>
        </li>
        <li class="ui-col ui-flex ui-flex-pack-end">
        </li>
    </ul>
</header>
@inject('pictureService','App\Interfaces\PictureService')
<div class="ui-container">
    <div class="ui-my-order-comment">
        <ul class="ui-list ui-list-function ui-border-tb">
            @foreach($commentGoods as $goods)
            <li>
                <div data-href="/goods/show/{{$goods->goods_id}}" class="ui-list-img">
                    <span style="background-image:url('{{$pictureService::thumb($goods->goods_thumb),254,254}}')"></span>
                </div>
                <div data-href="/goods/show/{{$goods->goods_id}}" class="ui-list-info">
                    <h4 class="ui-nowrap">{{$goods->goods_name}}</h4>
                    <p class="ui-nowrap">{{$goods->goods_pet_name}}</p>
                </div>
                @if($goods->comment_status==0)
                <div class="ui-btn ui-btn-default" data-href="/comment/{{$goods->id}}?goods_id={{$goods->goods_id}}&order_id={{$order_id}}">评价</div>
                @elseif($goods->comment_status==1)
                <div class="ui-btn ui-btn-default">已评价</div>
                @endif
            </li>
            @endforeach

        </ul>
    </div>
</div>
<script src="{{ asset('/build/lib/zepto.min.js') }}"></script>
<script src="{{ asset('/build/js/frozen.js') }}"></script>
<script src="{{ asset('/build/js/app.min.js') }}"></script>
</body>
</html>